<?php 
/*
Template Name: 员工风采模版
*/
get_header();
$this_is_page=true;
?>
		 <div id="container1">
	 	   <div class="AboutSubmenu">
		   	<ul>
				
				<li class="Home"><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/homebutton.png" /></a></li>
				
                             <?php   
                            if($post->post_parent) {
                              $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
                              $titlenamer = get_the_title($post->post_parent);
                              }
                              else {
                              $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
                              $titlenamer = get_the_title($post->ID);
                              }
                                           ?>
                                <li class="TitleButton"><?php echo $titlenamer; ?></li>
                              <?php
                              if ($children) { ?>
                              <?php echo $children; ?>
                             <?php } ?>

				<li class="Image"><img src="<?php bloginfo('template_url'); ?>/images/culture.jpg" /></li>
			</ul>
			
			
		   </div>
		   
		   <div class="contentSub">
			     <div class="titlePic">
				 	<img src="<?php bloginfo('template_url'); ?>/images/staff.jpg" />
				 </div>                   		  
		     <div class="contentBody">

				<div class="Staffone">
				<img src="<?php bloginfo('template_url'); ?>/images/halloffame.png" />
				</div>
				<div class="Stafftwo">
					<?php
						$the_query = new WP_Query('category_name=contractor&posts_per_page=30');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
								
						?>

						<div class="Tabone"><a href="<?php the_permalink(); ?>">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail(array(160,150),array('title' => ''));}else{}?>							
						</a>
						<p><?php //the_title(); ?></p>
						</div>
						
								
					<?php endwhile; ?>
				</div>	
				<div class="Stafffour">
				<img src="<?php bloginfo('template_url'); ?>/images/starstaff.png" />
				</div>
				<div class="Stafftwo">
					<?php
						$the_query = new WP_Query('category_name=goodstaff&posts_per_page=30');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
								
						?>

						<div class="Tabone"><a href="<?php the_permalink(); ?>">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail(array(160,150),array('title' => ''));}else{}?>							
						</a>
						<p><?php //the_title(); ?></p>
						</div>
						
								
					<?php endwhile; ?>
				</div>				
				
					     
				<div class="Staffone">
				<img src="<?php bloginfo('template_url'); ?>/images/staff.png" />
				</div>
				<div class="Stafftwo">
					<?php
						$the_query = new WP_Query('category_name=servicestar&posts_per_page=30');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
								
						?>

						<div class="Tabone"><a href="<?php the_permalink(); ?>">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail(array(160,150),array('title' => ''));}else{}?>							
						</a>
						<p><?php //the_title(); ?></p>
						</div>
						
								
					<?php endwhile; ?>
				</div>		
	
					</div>	
				</div>		
              
			  <div class="pageBottomPic"></div>
		   </div>
		 </div>

<?php get_footer(); ?>